#!/bin/bash

source ./envsetup

CONFIG=sophgo_mango_ubuntu_defconfig ./build_linux.sh $1

pushd $PATH_LINUX

rm -rf $WS_LINUX/linux-*.deb
rm -rf $WS_LINUX/linux-*.changes
rm -rf $WS_LINUX/linux-*.buildinfo

make -j$(nproc) O=$OUT bindeb-pkg

popd